package net.zjitc.doubao_community_backed.service.impl;/**
 * @Author 董熠涛
 * @Date 2025/6/19  1:09
 */

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import net.zjitc.doubao_community_backed.mapper.BmsTipMapper;
import net.zjitc.doubao_community_backed.model.entity.BmsTip;
import net.zjitc.doubao_community_backed.service.IBmsTipService;
import org.springframework.stereotype.Service;

/**
 * @Author:董熠涛
 * @ 2025/6/191:09
 */
@Slf4j
@Service
public class IBmsTipServiceImpl extends ServiceImpl<BmsTipMapper
        , BmsTip> implements IBmsTipService {

    @Override
    public BmsTip getRandomTip() {
        BmsTip todayTip = null;
        try {
            todayTip = this.baseMapper.getRandomTip();
        } catch (Exception e) {
            log.info("tip转化失败");
        }
        return todayTip;
    }
}
